package ink.tiptop.dto.req.auth;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 用于用户登录的信息(ZjfAuthUserInfoEntity)实体类
 *
 * @author makejava
 * @since 2020-06-21 20:35:17
 */
@Getter
@Setter
@ApiModel("用户登录对象")
public class LoginZjfAuthUserInfoRequest implements Serializable {
    private static final long serialVersionUID = -7141906816244288244L;
    /**
     * 用户账号
     */
    @JsonProperty("USER")
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(example="zjf",required=true,value = "用户名")
    private String user;
    /**
     * 用户密码
     */
    @JsonProperty("PASS")
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(example="A541271378B491CC1B9FBF960EC38588",required=true,value = "MD5密码")
    private String pass;
}